
<?php
$path="C:/xampp/htdocs/00_JO/JOi/";
 include ($path.'controller/JO_kpopzoneController.php'); 
     ?>
	 
	    <div style="width: 960px;background: url(JO_images/hr.gif1) repeat-x top left #222;position: relative;float:left;

             ">
             <? include 'JO_007_nav1.php';?>

            <div class="mar8i"></div>
            <div style="margin-left: 0px;" class="bar_720i" >
                <div style="" class="JO_h1i">
                        K-PopZone
                </div>
                <div class="content720i">
                    <div class="mar8i"></div>
                    <div style="width: 712px;float: left;margin-bottom: 8px;">
<!--
                        /////
                        ////
                        ///
                        //K-Pop News
-->
                        <div class="JO_Kpop_itemi ">
                            <div class="JO_kpop_item_titlei">
                                K-Pop News
                            </div>
                            <?php 
							
							$result_news=JO_news_getlist(1);
							if($result_news!=NULL){
							$row_news=$result_news->fetch_array();
							
							 ?>
                            <div class="mar8i"></div>
                          
                            <div class="JO_kpop_item_imgi">

                                <img src="<?=($row_news['image'])?>"   />
                            </div>
                            <div class="JO_kpop_item_contenti">
                            
                                <div class="textbi">
                                    <a href="?JO_unit=008_KPopNews_Detail&SO_chude=<?=$row_news['key']?>&type=1"><?=JO_UNconvertHTMLentities($row_news['title'])?></a>
                                </div>
                                <div class="texti">
                                  <?=limit_text(JO_UNconvertHTMLentities($row_news['description']),200)."..."?>
                                </div>
                                <div class="JO_kpop_relatedi">
                                    <ul class="nav_relatedi" style="padding-bottom: 0px;">
                                     <?php 
									$result_news_relate=JO_news_relate_getlist(1,JO_UNconvertHTMLentities($row_news['tag']),$row_news['key']);
									if($result_news_relate->num_rows)
									while($row_news_relate=$result_news_relate->fetch_array()){		
									
									 ?>
                                        <li><a href="?JO_unit=008_KPopNews_Detail.php"><?=JO_UNconvertHTMLentities($row_news_relate['title'])?></a></li>
                                    <?php } ?>
                                    </ul>
                                </div>
                            </div>
                            <div class="JO_kpop_item_relatedsi">
                                <ul class="navnewii" style="padding-bottom: 0px;">
                          			<?php 
						
									if(isset($row_news['key'])){
									$result_news_old=JO_newsold_getlist(1,$row_news['key']);
									if($result_news_old!=NULL){
										while($row_news_old=$result_news_old->fetch_array()){
									
							 		?>
                                        <li><a href="?JO_unit=008_KPopNews_Detail&SO_chude=<?=$row_news_old['key']?>&type=1"><?=JO_UNconvertHTMLentities($row_news_old['title'])?></a></li>
                                    <?php }
									}else{
										echo "<li>tạm hời chưa có tin ở mục này</li>";
									}}
									?>
                                </ul>
                            </div>
                            <?php }else {
							?>
							<div style="line-height:16px;padding:8px; ">chua co tin tuc cho phan nay</div>
							<?	
							}
								?>
                        </div>
                       
                       
<!--
                        //End K-Pop News
-->
<!--
                        /////
                        ////
                        ///
                        //Artist in Information
-->

                        <div class="JO_Kpop_itemi ">
                            <div class="JO_kpop_item_titlei">
                                Artist in Information
                            </div>
                            <div class="mar8i"></div>
                            <?php 
							$result_artist=JO_kpopzone_artist(1,1);
							if($result_artist!=NULL){
							$row_artist=$result_artist->fetch_array();							
							 ?>
                            <div class="JO_kpop_item_imgi">

                                <img src="<?=JO_UNconvertHTMLentities($row_artist['image'])?>"   />
                            </div>
                            <div class="JO_kpop_item_contenti">
                                <div class="textbi">
                                    <a href="?JO_unit=001_artist"><?=JO_UNconvertHTMLentities($row_artist['name'])?></a>
                                </div>
                                <div class="texti">
                                <?=limit_text(JO_UNconvertHTMLentities($row_artist['content']),200)?>
                                </div>
                                
                            </div>
                            <div class="JO_kpop_item_relatedsi">
                                <ul class="navnewii" style="padding-bottom: 0px;">
                                   <?php 
									$result_artist_old=JO_kpopzone_artist(2,6);
									if($result_artist_old!=NULL)
									while($row_artist_old=$result_artist_old->fetch_array()){						
									 ?>
                                        <li><a href="JO_005_Rank_artist.php"><?=JO_UNconvertHTMLentities($row_artist_old['name'])?></a></li>
                                     <?php }?>   
                                </ul>
                            </div>
							<?php }?>
                        </div>
 
<!-- 
                        //End Artist in Ìnormation
-->
<!--
                        /////
                        ////
                        ///
                        //Fan Corner
-->
                        <div class="JO_Kpop_itemi ">
                            <div class="JO_kpop_item_titlei">
                                Fan Corner
                            </div>
                            <div class="mar8i"></div>
                            <?php 
							$result_fan_corner=JO_news_getlist(2);
							if($result_fan_corner!=NULL){
							$row_fan_corner=$result_fan_corner->fetch_array();							
							 ?>
                            <div class="JO_kpop_item_imgi">

                                <img src="<?=$row_fan_corner['image']?>"   />
                            </div>
                            <div class="JO_kpop_item_contenti">
                                <div class="textbi">
                                    <a href="?JO_unit=008_KPopNews_Detail&SO_chude=<?=$row_fan_corner['key']?>&type=2"><?=JO_UNconvertHTMLentities($row_fan_corner['title'])?></a>
                                </div>
                                <div class="texti">
                                <?=html_entity_decode(JO_UNconvertHTMLentities($row_fan_corner['description']), ENT_QUOTES,'utf-8');?>
                                </div>
                                <div class="JO_kpop_relatedi">
                                    <ul class="nav_relatedi" style="padding-bottom: 0px;">
                                   <?php 
									$result_fan_corner_relate=JO_news_relate_getlist(2,JO_UNconvertHTMLentities($row_fan_corner['tag']),$row_fan_corner['key']);
									if($result_fan_corner_relate!=NULL)
									while($row_fan_corner_relate=$result_fan_corner_relate->fetch_array()){							
									 ?>

                                        <li><a href="?JO_unit=008_KPopNews_Detail&SO_chude=<?=$row_fan_corner_relate['key']?>&type=2"><?=JO_UNconvertHTMLentities($row_fan_corner_relate['title'])?></a></li>
                                     <?php } ?>   
                                    </ul>
                                </div>
                            </div>
                            <div class="JO_kpop_item_relatedsi">
                                <ul class="navnewii" style="padding-bottom: 0px;">
                                    <?php 
									if(isset($row_news['key'])){
									$result_fan_corner_old=JO_newsold_getlist(1,$row_news['key']);
									if($result_fan_corner_old->num_rows){
									$result_fan_corner_old=JO_newsold_getlist(2,$row_fan_corner['key']);
									
									while($row_fan_corner_old=$result_fan_corner_old->fetch_array()){							
							 		?>
                                        <li><a href="?JO_unit=008_KPopNews_Detail&SO_chude=<?=$row_fan_corner_old['key']?>&type=2"><?=JO_UNconvertHTMLentities($row_fan_corner_old['title'])?></a></li>
                                       <?php }}else{
										echo "<li>tạm hời chưa có tin ở mục này</li>";
									}}?>
                                </ul>
                            </div>
                             <?php }else {
							?>
							<div style="line-height:16px;padding:8px; ">chua co tin tuc cho phan nay</div>
							<?	
							}
								?>
                        </div>
   
<!--
                        //End Fan Corner
-->
<!--
                        /////
                        ////
                        ///
                        //Comment
-->
                        

<!--
                        //End Comment
-->

                    </div>
                </div>
            </div>

        </div>
<script>
    $($(".navnewi li:last-child")).addClass("JO_lasti");
</script>